<?php  define('IN_DAEM', true); include '../includes/init.php'; $id = $_GET['id']; if (!empty($id)) { $sql = "select id from ".DB_DAEMDB.".".TB_SUFFIX."task_job where id = '".$id."' limit 1"; $result = $db->query_first($sql); if (empty($result['id'])) { gourl('未能找到该记录', '', -1); } $sql = "delete from ".DB_DAEMDB.".".TB_SUFFIX."task_job where id = '".$id."'"; $query = $db->query($sql); if ($query) { gourl('删除成功','my_workspace.php'); } else { gourl('删除失败','', -1); } } else { gourl('访问非法', '', -1); }